home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000042_fdc@columbia.edu_Thu May 1 17:33:31 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
3KB
|
66 lines
Article: 14257 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Changed behavior of receive/transmit move-to
Date: 1 May 2003 17:33:17 -0400
Organization: Columbia University
Lines: 49
Message-ID: <b8s3qt$bkm$1@watsol.cc.columbia.edu>
References: <b8rfll$kfv$1@cpimail.cpicorp.com> <b8rkdi$mo0$1@watsol.cc.columbia.edu> <3EB182CB.8000502@nyc.rr.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1051824799 18679 128.59.39.139 (1 May 2003 21:33:19 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 1 May 2003 21:33:19 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14257
In article <3EB182CB.8000502@nyc.rr.com>,
Jeffrey Altman [Road Runner NYC] <jaltman2@nyc.rr.com> wrote:
: There were several issues:
:
: * a SET command that accepts out output directory will fail if the
: directory does not exist when the command is executed. Otherwise
: the command will fail.
:
I changed the SET { SEND, RECEIVE } MOVE-TO to fail only if an absolute
name was given and it didn't exist. A relative name is not checked until
move time.
: * what should happen if the relative MOVE-TO directory does not exist
: at the time of the move?
:
: - Should the file transfer fail? I think so.
:
It did and it still does.
: - Should the directory be created on the fly? Some people
: might want this option.
:
: - Should the move only take place if the relative directory exists?
: Others might prefer this choice.
:
I haven't done anything about these.
: The concern I have with Frank's approach is that it is going to break
: existing scripts by adding another layer of string evaluation. On
: Windows this is going to become an even greater nightmare.
:
Turns out no changes were needed here. SET { SEND, RECEIVE } MOVE-TO
did not need to use deferred evaluation of embedded variables, since we're
dealing with names of directories which must already exist (at least for
now). SET { SEND, RECEIVE } RENAME-TO already deferred evaluation of
embedded variables, so it does not make sense to change it. Except that it
was totally broken anyway (it always got a parse error), and that's just
been fixed.
: I think there is a better solution. Kermit already supports on_open,
: on_close, and on_exit macros. I propose that we simply add support for
: a new on_cd macro...
:
I'll add this to my to-do list and/or revisit it if today's changes are
not sufficient. Today's version is here:
http://www.columbia.edu/kermit/ckdaily.html
- Frank